#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_tl_server.h"
#include <QLibrary>
#include <QtNetwork>
#include "socket.h"
#include "server.h"
#include <QHostAddress>

class Tl_server : public QMainWindow
{
    Q_OBJECT

public:
    Tl_server(QWidget *parent = Q_NULLPTR);

private:
    Ui::Tl_serverClass ui;
    Server* server;
public slots:
    void info(QString);
    void newuser();
    void discon();
    void broadcast();
    void update_username();
};
